<?php
const HTTP_OK = 200;
CONST HTTP_WRONG = 400;
CONST HTTP_NOFOUND = 404;
CONST HTTP_DELETED = 410;
CONST HTTP_NOLENGTH = 411;
CONST HTTP_ERROR = 500;  //服务器内部错误，服务器遇到意外情况;
CONST DISABLED_CODE = -1;//禁用的编码
CONST ENABLED_CODE = 1;//启用的编码

const HTTP_OK_MESSAGE = '操作成功';
const HTTP_OK_LOGINMSG = '登录成功';
const HTTP_OK_UPDATEMSG = '修改成功';
const HTTP_WRONG_MESSAGE = '操作失败';
const HTTP_WRONG_NOFOUND = '数据不存在';
const HTTP_NOLOGIN_MESSAGE = '当前帐号已退出,请重新登录！';
const HTTP_NOLOGIN_LOGINMSG = '登录失败';
const HTTP_NOAUTH_MESSAGE = '无权限';
const HTTP_NOFOUND_MESSAGE = '找不到网页';
const HTTP_DELETED_MESSAGE = '此数据已被删除,无法展示';
const HTTP_INVALID_MESSAGE = '非法操作';
const HTTP_MISSING_PARAMETER_MESSAGE = '缺少参数';

// 上传文件目录
const UPLOAD_FILE_DIR = "/file";

//允许上传的最大图片大小，单位MB
const MAX_IMG_SIZE = 10;
//允许上传的最大音频大小，单位MB
const MAX_AUDIO_SIZE = 100;
//允许上传的最大视频大小，单位MB
const MAX_VIDEO_SIZE = 200;


const MAX_EXPORT_NUM = 5000;    //允许的最大导出数
const MAX_IMPORT_NUM = 500;     //允许的最大导入数

// const UPLOAD_DIR = "./uploadfiles";
const UPLOAD_IMG_EXT=array('jpg','jpeg','bmp','png');

const TOKEN_KEY = 'nanzhongyi';  //token键名，生成token时使用
